import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router/index'

// 引入样式资源
import'@/styles/common.scss';

// 引入自定义插件
import { lazyPlugin } from './directives';
// 注册通用组件的插件
import { compoentPlugin } from '@/components/index';
// pinia持久化插件
import piniaPluginPersistedState from 'pinia-plugin-persistedstate';

const app = createApp(App);

const pinia = createPinia();
pinia.use(piniaPluginPersistedState);

app.use(pinia);
app.use(router);
app.use(lazyPlugin);
app.use(compoentPlugin);


app.mount('#app');
